from django.db import models
from utils.models import CoreModel   


class UserPartner(CoreModel):
        
    price_list = models.BooleanField(null=True, blank=True, verbose_name='是否显示价格表', help_text='是否显示价格表')    
    credit_point = models.IntegerField(null=True, blank=True, verbose_name='信用额度', help_text='信用额度')    
    is_payonline = models.BooleanField(null=True, blank=True, verbose_name='是否在线支付', help_text='是否在线支付')    
    partner_id = models.CharField(null=True, blank=True, max_length=16, verbose_name='客户号', help_text='客户号')    
    user_id = models.CharField(null=True, blank=True, max_length=16, verbose_name='用户ID', help_text='用户ID')

    class Meta:
        db_table = 'user_partner'
        verbose_name = '用户伙伴信用表'
        verbose_name_plural = verbose_name
        ordering = ('-create_datetime',)
    